import request from "@/utils/request";

// 查询人员告警记录列表
export function listPersonHistory(query) {
  return request({
    url: "/alarm/personHistory/list",
    method: "get",
    params: query
  });
}

// 查询人员告警记录详细
export function getPersonHistory(alarmId) {
  return request({
    url: "/alarm/personHistory/" + alarmId,
    method: "get"
  });
}

// 新增人员告警记录
export function addPersonHistory(data) {
  return request({
    url: "/alarm/personHistory",
    method: "post",
    data: data
  });
}

// 修改人员告警记录
export function updatePersonHistory(data) {
  return request({
    url: "/alarm/personHistory",
    method: "put",
    data: data
  });
}

// 删除人员告警记录
export function delPersonHistory(alarmId) {
  return request({
    url: "/alarm/personHistory/" + alarmId,
    method: "delete"
  });
}

// 导出人员告警记录
export function exportPersonHistory(query) {
  return request({
    url: "/alarm/personHistory/export",
    method: "get",
    params: query
  });
}
